package test.wrc.com.app;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class DataStorageActivity extends BaseActivity {

    Button fileData;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_data_storage);

        fileData = (Button) findViewById(R.id.fileData);
        fileData.setOnClickListener(this);
    }


    @Override
    public void onClick(View v) {
        Intent intent = null;
        switch (v.getId()) {
            case R.id.fileData:
                Toast.makeText(this, "FileDataActivity", Toast.LENGTH_SHORT).show();
                intent = new Intent();
                intent.setClass(DataStorageActivity.this, FileDataActivity.class);
                startActivity(intent);
                break;
        }
    }
}
